<?php /* Smarty version 2.6.16, created on 2013-09-08 10:34:03
         compiled from ../templates/default//modules/register/step5.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/default//modules/register/step5.tpl', 163, false),array('modifier', 'str_pad', '../templates/default//modules/register/step5.tpl', 273, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/registration.css"><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/register.js"></script><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script>'; ?>

<?php echo '
<script type="text/javascript">

function validateFrm()
{
	
		var isvalid = false;
		isvalid = $("#frmTradesmanAdd").valid();
		if(isvalid==true)
		{
		
				var year = document.getElementById(\'carddate\').value;
				var mon = document.getElementById(\'cardmonth\').value;
				
				// TODAYS DATE
				var today = new Date();
				var todayDate,todayMonth,todayYear;
				todayDate=parseInt(today.getDate());
				todayMonth=parseInt(today.getMonth());
				todayYear=parseInt(today.getFullYear());
				
				var expYears;
				var expMon;
				expYears = parseInt(year);
				expMon = parseInt(mon);
				
				/************ Check valid Security code ************/
				var cc_code = document.getElementById("cardcode").value;			
				var cc_code_lengh = cc_code.length;
				var cc_type = document.getElementById("cardtype").value;
		
		
				if((todayYear == expYears) && (expMon < todayMonth))
				{
					isvalid = false;
					document.getElementById(\'date_error\').innerHTML = "Please Select Proper Expiration Date.";
					document.getElementById(\'cardmonth\').focus();
					return false;
				}		
				else if(cc_type == "Visa" || cc_type == "MasterCard")
				{	
					if(cc_code_lengh != "3")
					{
						document.getElementById("scode_msg").innerHTML = "Please enter valid security code";
						return false;
					}
					else
					{
						isvalid = true;
						document.getElementById(\'date_error\').innerHTML = "";
						document.getElementById("scode_msg").innerHTML = "";
						if(isvalid == true)
						{
								document.getElementById(\'btnstep4\').value = \'Submit\';
								$("#frmTradesmanAdd").submit();
						}
						return true;
					}
				}
				else if(cc_type == "AmEx")
				{
					if(cc_code_lengh != "4")
					{
						document.getElementById("scode_msg").innerHTML = "Please enter valid security code";
						return false;
					}
					else
					{
						isvalid = true;
						document.getElementById(\'date_error\').innerHTML = "";
						document.getElementById("scode_msg").innerHTML = "";
						if(isvalid == true)
						{
								document.getElementById(\'btnstep4\').value = \'Submit\';
								$("#frmTradesmanAdd").submit();
						}
						return true;
					}
				}
				/************ End of Check valid Security code ************/
				
		}
	
}


function showCity(sid){
	ajax.sendrequest("GET",SITEROOT + "/admin/city/show_city.php",{sid:sid},"","isShowCity");
}
function paymentfunction(i,planid)
{

	if(i==1)
	{
		document.getElementById("paymentdiv").style.display="none";
		document.getElementById("paymentdiv_value").value=\'0\';		
		document.getElementById("paymentdiv_btn").style.display="block";		
	}
	if(i!=1)
	{
		document.getElementById("paymentdiv").style.display="block";
		document.getElementById("paymentdiv_value").value=\'1\';		
		document.getElementById("paymentdiv_btn").style.display="none";		
	}	
	document.getElementById("plan_id").value=planid;		
}

</script>
'; ?>




<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<!-- MIDDLE CONTAIN GOES HERE -->
<section class="inner_wrapper">
<section class="middle_portion">
	<h1 class="registr_head">registration</h1>
    <section class="regis_steps_breadcrum_wrapper">
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step1.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step2.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step3.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step4.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step5_ho.png"></section>
        <section class="clear"></section>
    </section>    
   <form id="frmTradesmanAdd" name="frmTradesmanAdd" method="POST" > 
    <input type="hidden" id="email" name="email" value="<?php echo $_POST['email']; ?>
" />
    <input type="hidden" id="mobno" name="mobno" value="<?php echo $_POST['mobno']; ?>
" />
    <input type="hidden" id="companyname" name="companyname" value="<?php echo $_POST['companyname']; ?>
" />
    <input type="hidden" id="salutation" name="salutation" value="<?php echo $_POST['salutation']; ?>
" />
    <input type="hidden" id="firstname" name="firstname" value="<?php echo $_POST['firstname']; ?>
" />
    <input type="hidden" id="lastname" name="lastname" value="<?php echo $_POST['lastname']; ?>
" />
    <input type="hidden" id="postcode" name="postcode" value="<?php echo $_POST['postcode']; ?>
" />
    <input type="hidden" id="day" name="day" value="<?php echo $_POST['day']; ?>
" />
    <input type="hidden" id="month" name="month" value="<?php echo $_POST['month']; ?>
" />
    <input type="hidden" id="year" name="year" value="<?php echo $_POST['year']; ?>
" />
	<input type="hidden" id="gender" name="gender" value="<?php echo $_POST['gender']; ?>
" />
    <input type="hidden" id="password" name="password" value="<?php echo $_POST['password']; ?>
" />
    <input type="hidden" id="catname" name="catname" value="<?php echo $_POST['tradesArray']; ?>
" />
    <input type="hidden" id="jobtypeArray" name="jobtypeArray" value="<?php echo $_POST['jobsArray']; ?>
" />
    <input type="hidden" id="workarea" name="workarea" value="<?php echo $_POST['workarea']; ?>
" />
    <input type="hidden" id="radius" name="radius" value="<?php echo $_POST['radius']; ?>
" />
    <input type="hidden" id="radiusdata" name="radiusdata" value="<?php echo $_POST['radiusdata']; ?>
" />     
    <input type="hidden" id="centerpt" name="centerpt" value="<?php echo $_POST['centerpt']; ?>
" />
    <input type="hidden" id="state_id" name="state_id" value="<?php echo $_POST['state_id']; ?>
" />  	

    <h1 class="heading3 martp_bt">Membership Plan</h1>
    <section>
    	
    <section style="margin:20px 0px 20px 28px;">
    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['getplandetail']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
    <section class="price_wrapper lF">    
    	<section <?php if ($this->_sections['i']['iteration'] == '1'): ?> class="green_price_block" <?php endif; ?> <?php if ($this->_sections['i']['iteration'] == '2'): ?> class="blu_price_block" <?php endif; ?> <?php if ($this->_sections['i']['iteration'] == '3'): ?> class="org_price_block" <?php endif; ?> <?php if ($this->_sections['i']['iteration'] == '4'): ?> class="gry_price_block" <?php endif; ?>>
        	<section class="tiltle">            
            <input type="radio" class="radio" name="membershipplan" value="<?php echo $this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['price']; ?>
" <?php if ($this->_sections['i']['iteration'] == '1' && $_POST['plan_id'] == ''): ?>checked="checked" <?php endif; ?> <?php if ($_POST['plan_id'] == $this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['plan_id']): ?> checked="checked" <?php endif; ?> onclick="return paymentfunction(<?php echo $this->_sections['i']['iteration']; ?>
,<?php echo $this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['plan_id']; ?>
);" /><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</section>            
            <section class="price"><strong>$<?php echo $this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['price']; ?>
</strong></section>
            <section class="lead"><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][$this->_sections['i']['index']]['leads'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 LEADS</section>
        </section>
        <section class="clear"></section>
         <section class="box_shadow">&nbsp;</section>
    </section> 
    <?php endfor; endif; ?>  
    <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $this->_tpl_vars['getplandetail'][0]['plan_id']; ?>
"  />
    <section class="clear"></section>
   
    
    </section>
    </section>
   <div id="paymentdiv" <?php if ($_POST['plan_id'] != $this->_tpl_vars['getplandetail'][0]['plan_id'] && $_POST['plan_id'] != ''): ?> style="display:block;" <?php else: ?> style="display:none;" <?php endif; ?>> 
   <input type="hidden" id="paymentdiv_value" name="paymentdiv_value" value="0"  />
    <section class="regist_form no_bor">
    <h1>Payment Information</h1><br />
    <?php if ($this->_tpl_vars['sucmsg']): ?><span class="error" ><?php echo $this->_tpl_vars['sucmsg']; ?>
</span> <?php endif; ?>   
    <?php if ($this->_tpl_vars['msg']): ?><span class="error" ><?php echo $this->_tpl_vars['msg']; ?>
</span> <?php endif; ?>  
    <?php if ($this->_tpl_vars['errorMsg']): ?><div style="padding:5px;"><div class="error_msg" style="width:900px;" > <span><?php echo $this->_tpl_vars['errorMsg']; ?>
</span></div></div><?php endif; ?>  
         <dl>
        	<dt>Cardholder First  Name</dt>
            <dd><input type="text" class="input" name="cardfirstname" id="cardfirstname" value="<?php echo $_POST['cardfirstname']; ?>
" maxlength="20" /></dd>
            <section class="clear"></section>
        </dl>
         <dl>
        	<dt>Cardholder Last  Name</dt>
            <dd><input type="text" class="input" name="cardllastname" id="cardllastname" value="<?php echo $_POST['cardllastname']; ?>
" maxlength="20"/></dd>
            <section class="clear"></section>
        </dl>
                <dl>
        	<dt>Billing Address</dt>
            <dd><input type="text" class="input" name="billingaddr" id="billingaddr" value="<?php echo $_POST['billingaddr']; ?>
" maxlength="40"/></dd>
            <section class="clear"></section>
        </dl>
        <dl>
        	<dt>Card Type</dt>
            <dd>
            	<select class="input3" id="cardtype" name="cardtype">
            		<option value="">Select Card Type</option>
                	<option value="Visa" <?php if ($_POST['cardtype'] == 'Visa'): ?> selected="selected" <?php endif; ?>>VISA </option>
                    <option value="MasterCard" <?php if ($_POST['cardtype'] == 'MasterCard'): ?> selected="selected" <?php endif; ?>>Master Card </option>
                    <option value="AmEx" <?php if ($_POST['cardtype'] == 'AmEx'): ?> selected="selected" <?php endif; ?>>American Express </option>
                    
                </select>
            </dd>
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
        <dl>
        	<dt>Country</dt>
              <dd>
              	  <select class="input3" id="country" name="country">
                  		<option value="226">Australia</option>
                  </select></dd>
            <section class="clear"></section>
        </dl>
        <dl>
        	<dt>State/Province</dt>
              <dd>
              	  <select class="input3" id="state" name="state" onchange="showCity(this.value);">
                    <option value="">Select State</option>
                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['stateArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>               
		              <option value="<?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id']; ?>
" <?php if ($this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id'] == $_POST['state']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_name']; ?>
</option>
        		    <?php endfor; endif; ?>
                          
                  </select>
              </dd>
            <section class="clear"></section>
        </dl>
       <dl>
        	<dt>City</dt>
            <dd>
            <div id="isShowCity">
            	<select class="input3" id="city" name="city">
                  <option value="">Select City</option>
                   <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['cityArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
			           <option value="<?php echo $this->_tpl_vars['cityArray'][$this->_sections['i']['index']]['city_id']; ?>
" <?php if ($this->_tpl_vars['cityArray'][$this->_sections['i']['index']]['city_id'] == $_POST['city']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['cityArray'][$this->_sections['i']['index']]['city_name']; ?>
</option>
        	       <?php endfor; endif; ?>                                  
                  </select>
               </div>   
            	<!--<input type="text" class="input" name="" id="" value="">-->
            </dd>
            <section class="clear"></section>
        </dl>
       <dl>
        	<dt>Postal Code</dt>
            <dd><input type="text" class="input" name="cardpostalcode" id="cardpostalcode" value="<?php echo $_POST['cardpostalcode']; ?>
" maxlength="10"/></dd>
            <section class="clear"></section>
        </dl>
       <dl>
        	<dt>Card Number</dt>
            <dd><input type="text" class="input" name="cardnumber" id="cardnumber" maxlength="16" value="<?php echo $_POST['cardnumber']; ?>
" /></dd>
            <section class="clear"></section>
        </dl>
        <dl>
        	<dt>Security Code</dt>
            <dd><input type="text" class="input" name="cardcode" id="cardcode"  maxlength="4"  value="<?php echo $_POST['cardcode']; ?>
" /></dd>            
            <section class="clear"></section>
            
            <div style="color:#F00;" id="scode_msg"></div>
        </dl>
        <dl>
        	<dt>Expiration Date</dt>
            <dd>
             <section class="select_box_container">
                <select class="select Rmargin15" name="cardmonth" id="cardmonth">
                	<option value="">Select Month</option>
                    <?php unset($this->_sections['k']);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['start'] = (int)1;
$this->_sections['k']['loop'] = is_array($_loop=13) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['k']['show'] = true;
$this->_sections['k']['max'] = $this->_sections['k']['loop'];
if ($this->_sections['k']['start'] < 0)
    $this->_sections['k']['start'] = max($this->_sections['k']['step'] > 0 ? 0 : -1, $this->_sections['k']['loop'] + $this->_sections['k']['start']);
else
    $this->_sections['k']['start'] = min($this->_sections['k']['start'], $this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] : $this->_sections['k']['loop']-1);
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = min(ceil(($this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] - $this->_sections['k']['start'] : $this->_sections['k']['start']+1)/abs($this->_sections['k']['step'])), $this->_sections['k']['max']);
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
		                <option value="<?php echo ((is_array($_tmp=$this->_sections['k']['index'])) ? $this->_run_mod_handler('str_pad', true, $_tmp, 2, '0', @STR_PAD_LEFT) : str_pad($_tmp, 2, '0', @STR_PAD_LEFT)); ?>
" <?php if ($_POST['cardmonth'] == ((is_array($_tmp=$this->_sections['k']['index'])) ? $this->_run_mod_handler('str_pad', true, $_tmp, 2, '0', @STR_PAD_LEFT) : str_pad($_tmp, 2, '0', @STR_PAD_LEFT))): ?> selected="selected" <?php endif; ?>><?php echo ((is_array($_tmp=$this->_sections['k']['index'])) ? $this->_run_mod_handler('str_pad', true, $_tmp, 2, '0', @STR_PAD_LEFT) : str_pad($_tmp, 2, '0', @STR_PAD_LEFT)); ?>
</option>
                    <?php endfor; endif; ?>
                </select>
            </section>
             <section class="select_box_container">    
                <select class="select Rmargin15" name="carddate" id="carddate">
                	<option value="">Select Year</option>
                    <?php unset($this->_sections['yr']);
$this->_sections['yr']['name'] = 'yr';
$this->_sections['yr']['loop'] = is_array($_loop=$this->_tpl_vars['yr_arr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['yr']['show'] = true;
$this->_sections['yr']['max'] = $this->_sections['yr']['loop'];
$this->_sections['yr']['step'] = 1;
$this->_sections['yr']['start'] = $this->_sections['yr']['step'] > 0 ? 0 : $this->_sections['yr']['loop']-1;
if ($this->_sections['yr']['show']) {
    $this->_sections['yr']['total'] = $this->_sections['yr']['loop'];
    if ($this->_sections['yr']['total'] == 0)
        $this->_sections['yr']['show'] = false;
} else
    $this->_sections['yr']['total'] = 0;
if ($this->_sections['yr']['show']):

            for ($this->_sections['yr']['index'] = $this->_sections['yr']['start'], $this->_sections['yr']['iteration'] = 1;
                 $this->_sections['yr']['iteration'] <= $this->_sections['yr']['total'];
                 $this->_sections['yr']['index'] += $this->_sections['yr']['step'], $this->_sections['yr']['iteration']++):
$this->_sections['yr']['rownum'] = $this->_sections['yr']['iteration'];
$this->_sections['yr']['index_prev'] = $this->_sections['yr']['index'] - $this->_sections['yr']['step'];
$this->_sections['yr']['index_next'] = $this->_sections['yr']['index'] + $this->_sections['yr']['step'];
$this->_sections['yr']['first']      = ($this->_sections['yr']['iteration'] == 1);
$this->_sections['yr']['last']       = ($this->_sections['yr']['iteration'] == $this->_sections['yr']['total']);
?>
	                    <option value="<?php echo $this->_tpl_vars['yr_arr'][$this->_sections['yr']['index']]; ?>
" <?php if ($_POST['carddate'] == $this->_tpl_vars['yr_arr'][$this->_sections['yr']['index']]): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['yr_arr'][$this->_sections['yr']['index']]; ?>
</option>
                    <?php endfor; endif; ?>
                </select>
             </section>   
            </dd>
            <div id="date_error" style="color:#F00;"></div> 
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
    </section>
    <input type="hidden" name="btnstep4" id="btnstep4" <?php if ($_POST['plan_id'] != ''): ?> value="Submit" <?php else: ?> value="" <?php endif; ?>  />    
    <input <?php if ($_POST['plan_id'] != ''): ?> style="display:none" <?php endif; ?> type="button" onclick="return validateFrm();" name="btnstep4" id="btnstep4" value="Submit" class="blue_btn margintp_bt rF" >
    </div>
    <div id="paymentdiv_btn" style="display:block;">
    <input type="submit" name="new_btnstep4" id="new_btnstep4" value="Next" class="blue_btn margintp_bt rF" >
    </div>
    <section class="clear"></section>
    </form>
    
</section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>